<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width initial-scale=1.0">
  <title>欢迎光临昭通学院</title>
  <link rel="stylesheet" href="{% static 'common/css/main.css' %}">
</head>
<body>

  {% include 'web/top.html' %}

  <div id="content_container">
    <div id="content_center" class="container_center">
        <div id="web_category_left">
            <dl>
                <dt>相关栏目</dt>
                {% for c in cs %}
                    <dd><a href="{% url 'web.category_show' id=c.id %}">{{ c.name }}</a></dd>
                {% endfor %}
            </dl>
        </div>
        <div id="web_category_right">
            <h3>{{ show_c.name }}</h3>
            <hr>
            {% if show_c.type == 1 %}
                <dl id="content_tzgg" class="topic_dl">
                    {% for t in ts %}
                        <dd><a href="{% url 'web.topic_show' id=t.id %}" title="{{ t.title }}" class="topic_link">{{ t.title|truncatechars:60 }}</a></dd>
                    {% endfor %}
                </dl>
            {% elif show_c.type == 2 %}
                <div class="web_show_intro">
                    <span >发布日期:</span>
                    <span>{{ t.release_date }}</span>
                    <span>作者:</span>
                    <span>{{ t.author }}</span>
                </div>
                <div id="web_show_content">
                    {{ t.content|safe }}
                </div>
            {% endif %}
        </div>
        <div class="clear"></div>
    </div>
  </div>

{% include 'web/bottom.html' %}
</body>
</html>